package com.itheima_01;

public class Test {
    public static void main(String[] args) {
        BasketballAthlete basketballAthlete = new BasketballAthlete("张三",34);
        System.out.println(basketballAthlete);
        basketballAthlete.study();
        basketballAthlete.eat();
        System.out.println("--------------------------");
        PinbanAthlete pinbanAthlete = new PinbanAthlete("李四",33);
        System.out.println(pinbanAthlete);
        pinbanAthlete.speak();
        pinbanAthlete.study();
        pinbanAthlete.eat();
        System.out.println("--------------------------");
        BasketballCoach basketballCoach = new BasketballCoach("王五",54);
        System.out.println(basketballCoach);
        basketballCoach.teach();
        basketballCoach.eat();
        System.out.println("--------------------------");
        PinbanCoach pinbanCoach = new PinbanCoach("李六",52);
        System.out.println(pinbanCoach);
        pinbanCoach.speak();
        pinbanCoach.teach();
        pinbanCoach.eat();

    }
}
